package com.cai.dao;


import com.cai.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    public void add(OrderSetting orderSetting);
    public void editNumberByOrderDate(OrderSetting orderSetting);
    public long findCountByOrderDate(Date orderDate);
    public List<OrderSetting> getOrderSettingByMonth(Map date);
    public OrderSetting findByOrderDate(Date date);
    public void editReservationsByOrderDate(OrderSetting orderSetting);
    /**
     * 按日期查询当日可预约数
     * @param date
     * @return
     */
    Integer findNumberByDate(Date date);

    /**
     * 按日期查询当日已预约数
     * @param date
     * @return
     */
    Integer findReservationByDate(Date date);
}
